<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
        .box {
            /* overflow: hidden; */
            display: inline-block;
        }
        
        .box li {
            float: left;
        }
        
        .box2 {
            height: 200px;
            width: 200px;
            background: red;
            overflow: hidden;
        }
        
        .inner {
            width: 50px;
            height: 50px;
            background: pink;
            margin-top: 70px;
        }
    </style>
</head>

<body>
    <ul class="box">
        <li>111</li>
        <li>111</li>
        <li>111</li>
    </ul>

    <div class="box2">
        <div class="inner"></div>
    </div>
</body>

</html>